﻿using System.Collections.Generic;
using ProtoBuf;
namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 
    /// </summary>
    [ProtoContract(Name = "TableInBatchWriteRowResponse")]
    public class TableInBatchWriteRowResponse
    {
        private List<RowInBatchWriteRowResponse> putRows = new List<RowInBatchWriteRowResponse>();
        private List<RowInBatchWriteRowResponse> updateRows = new List<RowInBatchWriteRowResponse>();
        private List<RowInBatchWriteRowResponse> deleteRows = new List<RowInBatchWriteRowResponse>();
        /// <summary>
        /// 该表的表名
        /// </summary>
        [ProtoMember(1, Name = "table_name", IsRequired = true)]
        public string TableName { get; set; }
        /// <summary>
        ///  该表中PutRow操作的结果
        /// </summary>
        [ProtoMember(2, Name = "put_rows")]
        public List<RowInBatchWriteRowResponse> PutRows { get { return putRows; } set { putRows = value; } }
        /// <summary>
        /// 该表中UpdateRow操作的结果
        /// </summary>
        [ProtoMember(3, Name = "update_rows")]
        public List<RowInBatchWriteRowResponse> UpdateRows { get { return updateRows; } set { updateRows = value; } }
        /// <summary>
        /// 该表中DeleteRow操作的结果
        /// </summary>
        [ProtoMember(4, Name = "delete_rows")]
        public List<RowInBatchWriteRowResponse> DeleteRows { get { return deleteRows; } set { deleteRows = value; } }
    }
}
